package com.lovo.pz.util;

import java.io.Serializable;

/**
 * 玩家信息
 */
public class UserBean implements Serializable,Comparable<UserBean>{
    private String name;
    private int score;
    @Override
    public int compareTo(UserBean o) {
        return o.getScore() - this.getScore();
    }
    public UserBean(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

}
